<?php
try {
    $db = new PDO("pgsql:dbname=Central;host=localhost", "postgres", "postgres" );
    }
catch(PDOException $e)
    {
    echo $e->getMessage();
    }
?>